<?php


namespace App\Http\Controllers\Question;


use App\Http\Controllers\Controller;
use App\Repositories\BaseRepository;
use Illuminate\Support\Facades\Auth;

class BaseController extends Controller
{
    /**
     * @var BaseRepository
     */
    protected $repo;

    /**
     * @return Auth
     */
    public function auth(){
        return Auth::guard('user');
    }
    public function id(){
        return $this->auth()->id();
    }
}
